#include<bits/stdc++.h>
using namespace std;

int main() {
    int n;
    cin >> n;
    int arr[200005] = {0};
    
    for(int i = 0; i < n; i++) {
        int num;
        cin >> num;
        arr[num]++;
    }
    
    // Find the first non-zero count
    int j = 0;
    while(j < 200005 && arr[j] == 0) {
        j++;
    }
    
    // If found, print counts starting from j
    if(j < 200005) {
        cout << j;
        for(int i = j + 1; i < 200005; i++) {
            if(arr[i] != 0) {
                cout << " " << i;
            }
        }
    }
    
    cout << endl;
    return 0;
}
//int a[10010]={0},n,x,sum;
    //scanf("%d",&n);
    //for(int i=1;i<=n;i++){
    //    scanf("%d",&x);
    //    if(a[x]==0)
    //        printf("%d ",x);
    //        a[x]++;
    //}